﻿<%@ Page Title="" Language="C#" MasterPageFile="~/QLVB/Admin/Admin.master" AutoEventWireup="true" CodeFile="ThamSoVanBan.aspx.cs" Inherits="QLVB_Admin_CaiDatThamSoVanBan" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table style="border-style: double; width: 758px;">
        <tr>
            <td colspan="3">
                <asp:Label ID="lblBangLoaiVanBan" runat="server" Text="BẢNG LOẠI VĂN BẢN"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="lblMaLoaiVanBan" runat="server" Text="Mã loại văn bản:"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtMaLoaiVanBan" runat="server"></asp:TextBox>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="lblTenLoaiVanBan" runat="server" Text="Tên loại văn bản:"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtTenLoaiVanBan" runat="server"></asp:TextBox>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                <asp:Button ID="btnThemLoaiVanBan" runat="server" Text="Thêm" Width="100px" 
                    onclick="btnThemLoaiVanBan_Click" />
                <asp:Button ID="btnXoaLoaiVanBan" runat="server" Text="Xóa" Width="100px" 
                    onclick="btnXoaLoaiVanBan_Click" />
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td colspan="3">
                <asp:GridView ID="gvLoaiVanBan" runat="server" AutoGenerateColumns="False" 
                    Width="100%" 
                    PageSize="2" AllowPaging="True" 
                    onpageindexchanging="gvLoaiVanBan_PageIndexChanging" 
                    DataKeyNames="MaLoaiVanBan">
                    <Columns>
                        <asp:TemplateField>
                            <ItemTemplate>
                                <table style="width:100%;">
                                    <tr>
                                        <td>
                                            <asp:CheckBox ID="chkMaLoaiVanBan" runat="server" />
                                        </td>
                                        <td>
                                            &nbsp;</td>
                                        <td>
                                            &nbsp;</td>
                                    </tr>
                                </table>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <ItemTemplate>
                                <table style="width:100%;">
                                    <tr>
                                        <td>
                                            <asp:Label ID="lblMaLoaiVanBan" runat="server" Text="Mã loại văn bản:"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtMaLoaiVanBan" runat="server" Enabled="False" 
                                                Text='<%# Eval("MaLoaiVanBan") %>'></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Label ID="lblTenLoaiVanBan" runat="server" Text="Tên loại văn bản:"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtTenLoaiVanBan" runat="server" Enabled="False" 
                                                Text='<%# Eval("TenLoaiVanBan") %>'></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            &nbsp;</td>
                                        <td>
                                            <asp:HyperLink ID="hlnkSua" runat="server" 
                                                
                                                NavigateUrl='<%# "CapNhatLoaiVanBan.aspx?MaLoaiVanBan=" + Eval("MaLoaiVanBan") %>'>Sửa</asp:HyperLink>
                                        </td>
                                    </tr>
                                </table>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td colspan="3">
                <asp:Label ID="lblBangPhamVi" runat="server" Text="BẢNG PHẠM VI"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="lblMaPhamVi" runat="server" Text="Mã phạm vi:"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtMaPhamVi" runat="server"></asp:TextBox>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="lblTenPhamVi" runat="server" Text="Tên phạm vi:"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtTenPhamVi" runat="server"></asp:TextBox>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                <asp:Button ID="btnThemPhamVi" runat="server" Text="Thêm" Width="100px" 
                    onclick="btnThemPhamVi_Click" />
                <asp:Button ID="btnXoaPhamVi" runat="server" Text="Xóa" Width="100px" 
                    onclick="btnXoaPhamVi_Click" />
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td colspan="3">
                <asp:GridView ID="gvPhamVi" runat="server" AutoGenerateColumns="False" 
                    Width="100%" PageSize="2" AllowPaging="True" DataKeyNames="MaPhamVi" 
                    onpageindexchanging="gvPhamVi_PageIndexChanging">
                    <Columns>
                        <asp:TemplateField>
                            <ItemTemplate>
                                <table style="width: 100%;">
                                    <tr>
                                        <td>
                                            <asp:CheckBox ID="chkMaPhamVi" runat="server" />
                                        </td>
                                        <td>
                                            &nbsp;</td>
                                        <td>
                                            &nbsp;</td>
                                    </tr>
                                </table>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <ItemTemplate>
                                <table style="width:100%;">
                                    <tr>
                                        <td>
                                            <asp:Label ID="lblMaPhamVi" runat="server" Text="Mã phạm vi:"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtMaPhamVi" runat="server" Enabled="False" 
                                                Text='<%# Eval("MaPhamVi") %>'></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Label ID="lblTenPhamVi" runat="server" Text="Tên phạm vi:"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtTenPhamVi" runat="server" Enabled="False" 
                                                Text='<%# Eval("TenPhamVi") %>'></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            &nbsp;</td>
                                        <td>
                                            <asp:HyperLink ID="hlnkSua" runat="server" 
                                                NavigateUrl='<%# "CapNhatPhamVi.aspx?MaPhamVi=" + Eval("MaPhamVi") %>'>Sửa</asp:HyperLink>
                                        </td>
                                    </tr>
                                </table>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td colspan="3">
                <asp:Label ID="lblBangTrangThai" runat="server" Text="BẢNG TRẠNG THÁI"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="lblMaTrangThai" runat="server" Text="Mã trạng thái:"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtMaTrangThai" runat="server"></asp:TextBox>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="lblTenTrangThai" runat="server" Text="Tên trạng thái:"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtTenTrangThai" runat="server"></asp:TextBox>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                <asp:Button ID="btnThemTrangThai" runat="server" Text="Thêm" Width="100px" 
                    onclick="btnThemTrangThai_Click" />
                <asp:Button ID="btnXoaTrangThai" runat="server" Text="Xóa" Width="100px" 
                    onclick="btnXoaTrangThai_Click" />
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td colspan="3">
                <asp:GridView ID="gvTrangThai" runat="server" AutoGenerateColumns="False" 
                    Width="100%" PageSize="2" AllowPaging="True" DataKeyNames="MaTrangThai" 
                    onpageindexchanging="gvTrangThai_PageIndexChanging">
                    <Columns>
                        <asp:TemplateField>
                            <ItemTemplate>
                                <table style="width: 100%;">
                                    <tr>
                                        <td>
                                            <asp:CheckBox ID="chkMaTrangThai" runat="server" />
                                        </td>
                                        <td>
                                            &nbsp;</td>
                                        <td>
                                            &nbsp;</td>
                                    </tr>
                                </table>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <ItemTemplate>
                                <table style="width:100%;">
                                    <tr>
                                        <td>
                                            <asp:Label ID="lblMaTrangThai" runat="server" Text="Mã trạng thái:"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtMaTrangThai" runat="server" Enabled="False" 
                                                Text='<%# Eval("MaTrangThai") %>'></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Label ID="lblTenTrangThai" runat="server" Text="Tên trạng thái:"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtTenTrangThai" runat="server" Enabled="False" 
                                                Text='<%# Eval("TenTrangThai") %>'></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            &nbsp;</td>
                                        <td>
                                            <asp:HyperLink ID="hlnkSua" runat="server" 
                                                NavigateUrl='<%# "CapNhatTrangThai.aspx?MaTrangThai=" + Eval("MaTrangThai") %>'>Sửa</asp:HyperLink>
                                        </td>
                                    </tr>
                                </table>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td colspan="3">
                <asp:Label ID="lblBangTinhChat" runat="server" Text="BẢNG TÍNH CHẤT"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="lblMaTinhChat" runat="server" Text="Mã tính chất:"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtMaTinhChat" runat="server"></asp:TextBox>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="lblTenTinhChat" runat="server" Text="Tên tính chất:"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtTenTinhChat" runat="server"></asp:TextBox>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                <asp:Button ID="btnThemTinhChat" runat="server" Text="Thêm" Width="100px" 
                    onclick="btnThemTinhChat_Click" />
                <asp:Button ID="btnXoaTinhChat" runat="server" Text="Xóa" Width="100px" 
                    onclick="btnXoaTinhChat_Click" />
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td colspan="3">
                <asp:GridView ID="gvTinhChat" runat="server" AutoGenerateColumns="False" 
                    Width="100%" PageSize="2" AllowPaging="True" DataKeyNames="MaTinhChat" 
                    onpageindexchanging="gvTinhChat_PageIndexChanging">
                    <Columns>
                        <asp:TemplateField>
                            <ItemTemplate>
                                <table style="width:100%;">
                                    <tr>
                                        <td>
                                            <asp:CheckBox ID="chkMaTinhChat" runat="server" />
                                        </td>
                                        <td>
                                            &nbsp;</td>
                                        <td>
                                            &nbsp;</td>
                                    </tr>
                                </table>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <ItemTemplate>
                                <table style="width:100%;">
                                    <tr>
                                        <td>
                                            <asp:Label ID="lblMaTinhChat" runat="server" Text="Mã tính chất:"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtMaTinhChat" runat="server" Enabled="False" 
                                                Text='<%# Eval("MaTinhChat") %>'></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Label ID="lblTenTinhChat" runat="server" Text="Tên tính chất:"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtTenTinhChat" runat="server" Enabled="False" 
                                                Text='<%# Eval("TenTinhChat") %>'></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            &nbsp;</td>
                                        <td>
                                            <asp:HyperLink ID="hlnkSua" runat="server" 
                                                NavigateUrl='<%# "CapNhatTinhChat.aspx?MaTinhChat=" + Eval("MaTinhChat") %>'>Sửa</asp:HyperLink>
                                        </td>
                                    </tr>
                                </table>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td colspan="3">
                <asp:Label ID="lblBangHinhThuc" runat="server" Text="BẢNG HÌNH THỨC"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="lblMaHinhThuc" runat="server" Text="Mã hình thức:"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtMaHinhThuc" runat="server"></asp:TextBox>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="lblTenHinhThuc" runat="server" Text="Tên hình thức:"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtTenHinhThuc" runat="server"></asp:TextBox>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                <asp:Button ID="btnThemHinhThuc" runat="server" Text="Thêm" Width="100px" 
                    onclick="btnThemHinhThuc_Click" />
                <asp:Button ID="btnXoaHinhThuc" runat="server" Text="Xóa" Width="100px" 
                    onclick="btnXoaHinhThuc_Click" />
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td colspan="3">
                <asp:GridView ID="gvHinhThuc" runat="server" AutoGenerateColumns="False" 
                    Width="100%" PageSize="2" AllowPaging="True" DataKeyNames="MaHinhThuc" 
                    onpageindexchanging="gvHinhThuc_PageIndexChanging">
                    <Columns>
                        <asp:TemplateField>
                            <ItemTemplate>
                                <table style="width:100%;">
                                    <tr>
                                        <td>
                                            <asp:CheckBox ID="chkMaHinhThuc" runat="server" />
                                        </td>
                                        <td>
                                            &nbsp;</td>
                                        <td>
                                            &nbsp;</td>
                                    </tr>
                                </table>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <ItemTemplate>
                                <table style="width:100%;">
                                    <tr>
                                        <td>
                                            <asp:Label ID="lblMaHinhThuc0" runat="server" Text="Mã hình thức:"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtMaHinhThuc0" runat="server" Enabled="False" 
                                                Text='<%# Eval("MaHinhThuc") %>'></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Label ID="lblTenHinhThuc0" runat="server" Text="Tên hình thức:"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtTenTinhChat0" runat="server" Enabled="False" 
                                                Text='<%# Eval("TenHinhThuc") %>'></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            &nbsp;</td>
                                        <td>
                                            <asp:HyperLink ID="hlnkSua0" runat="server" 
                                                NavigateUrl='<%# "CapNhatHinhThuc.aspx?MaHinhThuc=" + Eval("MaHinhThuc") %>' 
                                                Text="Sửa"></asp:HyperLink>
                                        </td>
                                    </tr>
                                </table>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
            </td>
        </tr>
        <tr>
            <td colspan="3">
                &nbsp;</td>
        </tr>
        <tr>
            <td colspan="3">
                <asp:Label ID="lblBangNoiPhatHanh" runat="server" Text="BẢNG NƠI PHÁT HÀNH"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="lblMaNoiPhatHanh" runat="server" Text="Mã nơi phát hành:"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtMaNoiPhatHanh" runat="server"></asp:TextBox>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="lblTenNoiPhatHanh" runat="server" Text="Tên nơi phát hành:"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtTenNoiPhatHanh" runat="server"></asp:TextBox>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                <asp:Button ID="btnThemNoiPhatHanh" runat="server" Text="Thêm" Width="100px" 
                    onclick="btnThemNoiPhatHanh_Click" />
                <asp:Button ID="btnXoaNoiPhatHanh" runat="server" Text="Xóa" Width="100px" 
                    onclick="btnXoaNoiPhatHanh_Click" />
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td colspan="3">
                <asp:GridView ID="gvNoiPhatHanh" runat="server" AutoGenerateColumns="False" 
                    Width="100%" PageSize="2" AllowPaging="True" DataKeyNames="MaNoiPhatHanh" 
                    onpageindexchanging="gvNoiPhatHanh_PageIndexChanging">
                    <Columns>
                        <asp:TemplateField>
                            <ItemTemplate>
                                <table style="width:100%;">
                                    <tr>
                                        <td>
                                            <asp:CheckBox ID="chkMaNoiPhatHanh" runat="server" />
                                        </td>
                                        <td>
                                            &nbsp;</td>
                                        <td>
                                            &nbsp;</td>
                                    </tr>
                                </table>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <ItemTemplate>
                                <table style="width:100%;">
                                    <tr>
                                        <td>
                                            <asp:Label ID="lblMaNoiPhatHanh" runat="server" Text="Mã nơi phát hành:"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtMaNoiPhatHanh" runat="server" Enabled="False" 
                                                Text='<%# Eval("MaNoiPhatHanh") %>'></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Label ID="lblTenNoiPhatHanh" runat="server" Text="Tên nơi phát hành:"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtTenNoiPhatHanh" runat="server" Enabled="False" 
                                                Text='<%# Eval("TenNoiPhatHanh") %>'></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            &nbsp;</td>
                                        <td>
                                            <asp:HyperLink ID="hlnkSua" runat="server" 
                                                NavigateUrl='<%# "CapNhatNoiPhatHanh.aspx?MaNoiPhatHanh=" + Eval("MaNoiPhatHanh") %>' 
                                                Text="Sửa"></asp:HyperLink>
                                        </td>
                                    </tr>
                                </table>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
            </td>
        </tr>
    </table>
</asp:Content>

